package org.jeecg.modules.rooms.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品库存分类表
 * </p>
 *
 * @author Claude
 * @since 2023-03-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ces_stock_type")
public class CesStockType extends Model<CesStockType> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 酒店ID
     */
    private String hotelId;

    /**
     * 分类名称
     */
    private String name;

    /**
     * 上级ID
     */
    private String parentId;

    /**
     * 是否快捷
     */
    private Boolean isQuick;

    /**
     * 是否启用
     */
    private Boolean state;

    /**
     * 应用范围 1客房 2 pos 3 娱乐
     */
    private String applyScope;

    /**
     * pos 类型值
     */

    private String posType;

    /**
     * 娱乐类型值
     */
    private String funType;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 创建时间
     */
    @TableField("createAt")
    private LocalDateTime createAt;

    /**
     * 修改时间
     */
    @TableField("updateAt")
    private LocalDateTime updateAt;

    /**
     * 逻辑删除字段
     */
    private Boolean invalid;


    public static final String ID = "id";

    public static final String HOTEL_ID = "hotel_id";

    public static final String NAME = "name";

    public static final String PARENT_ID = "parent_id";

    public static final String ISQUICK = "is_quick";

    public static final String STATE = "state";

    public static final String APPLY_SCOPE = "apply_scope";

    public static final String POS_TYPE = "pos_type";

    public static final String FUN_TYPE = "fun_type";

    public static final String SORT = "sort";

    public static final String CREATEAT = "createAt";

    public static final String UPDATEAT = "updateAt";

    public static final String INVALID = "invalid";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
